package BehavioralPattern.Visitor.element;

import BehavioralPattern.Visitor.visitor.Visitor;
import lombok.Data;

/**
 * @Classname : Employee
 * @Description : 抽象元素——员工
 * @Author : chentianyu
 * @Date 2023/3/12 10:21
 */

@Data
public abstract class Employee {

    public final static int MALE = 0;  // 男性
    public final static int FEMALE = 1;  // 女性

    // 姓名
    private String name;
    // 性别
    private Integer sex;
    // 薪资
    private Integer salary;

    // 允许访问者访问数据
    public abstract void accept(Visitor visitor);
}
